Health Cloud Patient Data Synchronization LWC - Source
Setup guide
Dependencies
- Deploy Mule API Health Cloud Patient Data Synchronization Process API - Implementation Template and all of the system APIs that support it.
Installing Lightning Web Component to Salesforce
- Use the following URL to install this package in your HealthCloud enabled org. Login with the username and password for the org that you wish to install the package into. https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5f000000GtIGAA0
- Approve the Install for "All Users".
- Step through the install wizard until the installation is complete.
Note: You may alternatively install the lightning web component from source code by downloading the asset (.zip file) and then follow the instructions in the provided README.md file.
Salesforce configuration
Remote Site Access
Before any Apex callout can call an external api, that api must be registered in the Remote Site Settings Page, or the call fails. To access the page, from Setup, enter
Remote Site Settings
in theQuick Find box
, then select Remote Site Settings. Find the entry called 'patient_sync_prc_api' and edit it. Set the URL to Patient Sync Mule API.LWC Configuration
The URL of the Patient Sync Mule API needs to be configured. To access the page, from Setup, enter
Custom Metadata Types
in theQuick Find box
, and click the one labeled 'Patient Sync'. Next click the button 'Manage Patient Syncs' and then click the 'Edit' link for patientSync. Configure thebaseUrl
and set it to the URL of your Patient Sync Mule API. If theSource System
you're using is cerner you can set that also. Now click theSave
button.Add LWC to Page
- Navigate to a page within Salesforce, where PatientSearch needs to be setup. Example - Getting Started
- Use the gear icon at the top right to select edit page
- On the edit page menu, on the left side menu scroll to the bottom to find the custom component "patientSearch" and position it in the desired location on the page
- Save the page and exit Editor
- Test the installed LWC as shown in the following screenshot:
Editing the source code
Modification of the source code requires that the Salesforce CLI toolset is installed on the local machine that's performing the install.
These steps assumes that you've already performed the installation of the lightning web component into Salesforce org.
- First setup a new project directory to work in. See Create a Salesforce DX Project for instructions.
- Next authorize the org with the installed app. See the Salesforce Authorize an Org Using Web Server Flow for the cli instructions to setup your org.
- Next issue the following command which will pull the existing source code from the org and put it in the current directory under
patient-sync-app/main/default
.
sfdx force:source:retrieve -n patient-sync-app